package model

import "time"

// 保存所有表

type TablesModel struct {
	Id       int64
	Name     string    `xorm:"varchar(64) notnull 'name' comment('表名')"`
	Url      string    `xorm:"varvhar(64) notnull 'url' comment('请求url路径')"`
	Method   int64     `xorm:"notnull 'method' comment('0:all,1:get,2:post,3:put,4:delete')"`
	CreateAt time.Time `xorm:"'create_at' created"`
	UpdateAt time.Time `xorm:"'update_at' updated"`
}

func (TablesModel) TableName() string {
	return "tables"
}
